#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<string>

using namespace std;
void ReverseString(string& s)
{
	int start = 0;
	int end = s.size() - 1;
	while (start < end)
	{
		char temp = s[start];
		s[start] = s[end];
		s[end] = temp;
		++start;
		--end;
	}
}

int main()
{
	string s;
	cin >> s;
	ReverseString(s);
	cout << s << endl;
	return 0;
}